<%@ page import = "java.sql.*" %>
<%@ page import = "javax.naming.*" %>
<%@ page import = "javax.sql.*" %>
<%
Context ctx=null;
DataSource ds=null;
Connection conn=null;

ctx = new InitialContext();

	ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mysql");

	if(ds == null)
	{
		out.println("no datasource");
	}

	conn = ds.getConnection();

Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE); 
%>